package com.shzg.im.model;

import java.sql.Date;
import java.util.Set;

/**
 * 
 * 用户群组实体
 * 
 * @author MT
 *
 */
public class Group {

    private String id;

    private String name;

    private String description;

    private String creatorId;

    private Date createTime;

    private String avatar;

    /*
     * 群组成员
     */
    private Set<User> members;

    public Set<User> getMembers() {
        return members;
    }

    public void setMembers(Set<User> members) {
        this.members = members;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return String
                .format("Group [id=%s, name=%s, description=%s, creatorId=%s, createTime=%s, avatar=%s, members=%s]",
                        id, name, description, creatorId, createTime, avatar,
                        members);
    }

}
